home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000022_news@columbia.edu _Tue Sep 12 18:08:11 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id SAA06920
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 12 Sep 2000 18:08:11 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA10739
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 12 Sep 2000 18:08:11 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id RAA03223
  10.     for kermit.misc@watsun.cc.columbia.edu; Tue, 12 Sep 2000 17:54:35 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: C-Kermit question
  14. Date: 12 Sep 2000 21:54:34 GMT
  15. Organization: Columbia University
  16. Message-ID: <8pm8mq$34k$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <slrn8rt8fl.sulc.jgodden@rialto.newchemicalentities.com>,
  20. jeff godden <jgodden@nce-mail.com> wrote:
  21. : On 12 Sep 2000 17:34:39 GMT, Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
  22. : >In article <8plnua$rsn$1@talia.mad.ttd.net>,
  23. : >Enrique Bernal <ebv@iies.es> wrote:
  24. : >: I have a Linux box (SuSE 6.4) with one NIC (IP: 192.168.0.1) and one 
  25. : >: serial port ( /dev/ttyS0 ).
  26. : >: 
  27. : >: I want to send (by LAN) to other host (192.168.0.2) any character received
  28. : >: in the serial port  /dev/ttyS0.
  29. : >: 
  30. : >: In the same way, I want to send out (by serial port /dev/ttyS0) any
  31. : >: character received (by LAN) in 192.168.0.1
  32. : >: 
  33. : >: Is possible to do this with Kermit ?
  34. : >: 
  35. : >No, sorry.  C-Kermit can have only one connection open at a time.
  36. : Yet couldn't one have more than one kermit process with
  37. : either a unix pipe or fifo buffer or somesuch doing a
  38. : bucket chain?
  39. There's no mechanism in Kermit for linking itself to another...  Hmmm...
  40. wait a minute; there's so much in there sometimes even I forget what it all
  41. is.  OK, how about this:
  42.  
  43.   set host 192.168.0.2
  44.   transmit /pipe kerbangscriptname
  45.  
  46. where "kerbangscriptname" is the name of a (C-Kermit) "Kerbang" script that
  47. (starts another copy of Kermit and) opens a serial-port connection on
  48. /dev/ttyS0 and enters CONNECT mode.  But if this worked, it would work only 
  49. in one direction.
  50.  
  51. Some other tricks could be imagined too, maybe with session logs (did you
  52. know you can "log session |pipename"?), fopen(), etc.  How about we make it a
  53. contest?
  54.  
  55. But I seriously doubt there will be any truly practical solution.  It would
  56. be easier to write a tiny little C program that opens the two connections
  57. and goes into a select() loop, or uses two forks for copying in the two
  58. directions.
  59.  
  60. : On an rather separate issue, Frank, when is a new version
  61. : of the Kermit book coming out?   'cuz i want to give you
  62. : fine folks more money. [wink]
  63. :
  64. Well, there was going to be one for C-Kermit 7.0 but we wanted to do just a
  65. few more things first, and this got a bit out of hand, so the current plan
  66. is to have the next edition of the book (or books -- there is going to be an
  67. awful lot of new material) come out with the next release of C-Kermit, which
  68. I hope we can announce for alpha testing "shortly".
  69.  
  70. - Frank